import Vue from 'vue'
import Router from 'vue-router'
import blogArticleList from '../components/indexMain/blogArticleModule/articleListMain/blogArticleList'
import articleInfo from '../components/indexMain/blogArticleModule/articleListMain/articleInfo'
import message from '../components/indexMain/messageBoardModule/message'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'indexRouter'
    },
    {
      path: '/blogArticleList',
      name: '/blogArticleList',
      components: {
        main: blogArticleList
      }
    },
    {
      path: '/blogArticleList/articleInfo/:articleId',
      name: 'articleInfo',
      components: {
        main: articleInfo
      }
    },
    {
      path: '/message',
      name: '/message',
      components: {
        main: message
      }
    }
  ]
})
